package com.hsnn.medstgmini.model;

public enum MessageHasRead {

	WD(0, "未阅读"), YD(1, "已阅读");

	private int key;
	private String value;

	private MessageHasRead(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (MessageHasRead status : MessageHasRead.values()) {
			if (status.key == key) {
				return status.value;
			}
		}
		return "";
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}